package cc.magicjson.design.principles.openclose;

import java.math.BigDecimal;

/**
 * {@link}
 *
 * @author <a href="mailto:it_magicjson@163.com">MagicJson</a>
 * @since 1.0.0
 */
public class JavaCourse implements ICourse{

    public JavaCourse() {
    }

    public JavaCourse(Integer id, String name, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    private Integer id;

    private String name;


    private BigDecimal price;


    @Override
    public Integer getId() {
        return id;
    }

    public JavaCourse setId(Integer id) {
        this.id = id;
        return this;
    }

    @Override
    public String getName() {
        return name;
    }

    public JavaCourse setName(String name) {
        this.name = name;
        return this;
    }

    @Override
    public BigDecimal getPrice() {
        return price;
    }

    public JavaCourse setPrice(BigDecimal price) {
        this.price = price;
        return this;
    }
}
